import { Inject } from '@midwayjs/decorator';
import { DemoDangerEntity } from '../../entity/danger';
import { BaseController, CoolController } from '@cool-midway/core';
import { Context } from "egg";
import { InjectEntityModel } from '@midwayjs/orm';
import { Repository } from 'typeorm';


/**
 * 测试
 */
@CoolController({
	api: ['add', 'delete', 'update', 'info', 'page', 'list'],
	entity: DemoDangerEntity,
})
export class CoolGoodsController extends BaseController {
	@Inject()
	ctx: Context;
	@InjectEntityModel(DemoDangerEntity)
	demoGoodsEntity: Repository<DemoDangerEntity>;

}
